// File:    Group.cs
// Author:  Liqun
// Created: 2013年6月25日 11:22:26
// Purpose: Definition of Class Group

using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
namespace DataAccess.Models
{

	public sealed class Group
	{
		[Key]
		public int GroupID
		{
			get;
			set;
		}
		[Required(ErrorMessage = "名称不能为空")]
		public string GroupName
		{
			get;
			set;
		}
		public string GroupDescription
		{
			get;
			set;
		}
		public DateTime? GroupAddTime
		{
			get;
			set;
		}
		public DateTime? GroupModifyTime
		{
			get;
			set;
		}
		public int GroupCategoryID
		{
			get;
			set;
		}
		public int DisplayOrder
		{
			get;
			set;
		}
		public GroupCategory TheGroupCategory
		{
			get;
			set;
		}
		public List<KPI> ListKPIs
		{
			get;
			set;
		}
		public int ShowOnHome
		{
			get;
			set;
		}
		public string GroupDispName
		{
			get;
			set;
		}
		public string GroupShortName
		{
			get;
			set;
		}

		[System.ComponentModel.DataAnnotations.Schema.NotMapped]
		public User2 TheGroupDocReciever
		{
			get;
			set;
		}
	}
}